﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TesteOnline.Model;

namespace TesteOnline
{
    public partial class SetupForm : System.Web.UI.Page
    {
        Bll.Wrapper wrapper = new Bll.Wrapper();
        Disciplines[] vet;

        protected void Page_Load(object sender, EventArgs e)
        {
            vet = wrapper.GetDisciplines().ToArray();
            ListBox1.DataSource = vet;
            ListBox1.DataTextField = "Name";
            ListBox1.DataValueField= "Id";
            ListBox1.DataMember = "Name";
            DataBind();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //Session["DisciplineId"] = vet[ListBox1.SelectedIndex].Id;
            //this.Response.Redirect("AvaliationForm1.aspx");
        }
    }
}